package com.md.yleducationsupervisor

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
import com.md.adapter.JiLuAdapter
import com.md.base.BaseActivity
import com.md.nohttp.Params
import com.scwang.smartrefresh.layout.api.RefreshLayout
import com.scwang.smartrefresh.layout.listener.OnRefreshLoadMoreListener
import kotlinx.android.synthetic.main.activity_child_info.*
import kotlinx.android.synthetic.main.layout_list.*

class ChildInfoActivity : BaseActivity() {
    private var jladapter: JiLuAdapter? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_child_info)
        changeTitle("孩子详情")
        init()
    }

    fun init() {
        gridLayoutManager = GridLayoutManager(baseContext,3)
        rc_jilu.layoutManager = gridLayoutManager
        rc_jilu.isNestedScrollingEnabled = false//禁止滑动
        jladapter = JiLuAdapter(baseContext, R.layout.item_jilu, Params.datas)
        rc_jilu.adapter = jladapter

    }

}
